﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using FAQFrameworks;

namespace FooFun.Web.Controls
{
    public class PageLogout : DataElementControl
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            HttpCookie cookie = new HttpCookie("ID");
            cookie.Value
                = string.Empty;

            cookie.Expires = DateTime.Now.AddDays(-1);

            Page.Response.Cookies.Add(cookie);

            MessageUtil.SetMessage("注销成功");

            //Page.Response.Redirect("~/Default.aspx");
        }
    }
}
